From ef955db9516c66eb5e767683f7ac85205fd73d9f Mon Sep 17 00:00:00 2001 From: robertl Date: Mon, 18 Jul 2005 17:01:26 +0000 Subject: [PATCH] Drop wayptc inside waypt_flush. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@1290 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/waypt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gpsbabel/waypt.c b/gpsbabel/waypt.c index 44e9e9ad3..11eb9e849 100644 --- a/gpsbabel/waypt.c +++ b/gpsbabel/waypt.c @@ -92,7 +92,7 @@ waypt_add(waypoint *wpt) * try to be sure that we have these fields even if just by * copying them from elsewhere. */ - +#if 0 if (wpt->shortname == NULL) { if (wpt->description) { wpt->shortname = xstrdup(wpt->description); @@ -117,6 +117,7 @@ waypt_add(waypoint *wpt) } } } +#endif } void @@ -309,6 +310,7 @@ waypt_flush( queue *head ) QUEUE_FOR_EACH(head, elem, tmp) { waypoint *q = (waypoint *) dequeue(elem); waypt_free(q); + waypt_ct--; } } -- 2.30.2